import { createRouter, createWebHashHistory } from 'vue-router';

export default createRouter({
  history: createWebHashHistory(),
  routes: [
    {
    // 主页
      path: '/',
      component: () => import('@/views/home/index.vue'),
      children: [
        {
          path: '/stay',
          component: () => import('@/views/home/index.vue'),
        },
      ],
    },
    {
    // 登录
      path: '/login',
      component: () => import('@/views/login/index.vue'),
    },
  ],
});
